//
//  YWActionSheet.h
//  YWActionSheet
//
//  Created by suzhizhan on 15/7/24.
//
//

#import <UIKit/UIKit.h>
#define RGBCOLOR(r, g, b)       [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:1]
#define RGBACOLOR(r, g, b, a)   [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:(a)]
#define ScreenHeight [UIScreen mainScreen].bounds.size.height
#define ScreenWidth [UIScreen mainScreen].bounds.size.width
#define DefaultHeight 46
@class YWActionSheet;
@protocol YWActionSheetDelegate <NSObject>
- (void)actionSheetClickedAtIndex:(NSInteger)index andActionSheet:(YWActionSheet *)actionSheet;
@optional
- (void)actionSheetClickedCancleBtnWithActionSheet:(YWActionSheet *)actionSheet;
@end

@interface YWActionSheet : UIView<UITableViewDataSource,UITableViewDelegate,UIGestureRecognizerDelegate>
{
    UITableView *view;
    UIView *backGroundView;
    NSArray *listData;
    UIView *lineView;
    UIButton *cancleBtn;
}
-(id)initWithlist:(NSArray *)list height:(CGFloat)height andCancelBtn:(NSString *)cancleName;
-(void)showInView:(UIViewController *)Sview andIsRootVc:(BOOL)isRoot;
- (void)showinView:(UIView *)showView;
@property (nonatomic,weak)id <YWActionSheetDelegate>delegate;
@property (nonatomic,strong)NSArray *titleList;
@end
